package com.candy.niuniu.logdubbo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/10/12 14:22
 * @Description 描述
 */
@FeignClient(name = "candy-message")//TODO, better if this annotation can automatically match to provided-by in Dubbo
@Controller
// FIXME, controller annotation would not be mandatory after FeignClient being supported in dubbo-3.3.0 release.
public interface MessageService {

    @RequestMapping(value = "test5", method = RequestMethod.GET)
        // produces = "application/json"
    String test5(@RequestParam("name") String name);

}
